﻿<UserControl x:Class="eGrid_App.ScatterLayer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:s="http://schemas.microsoft.com/surface/2008"   
             xmlns:src="clr-namespace:eGrid_App"
             xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" >
    
    <UserControl.Resources>
        <ImageBrush x:Key="MapOverlay" Stretch="Fill" Opacity="0.25" ImageSource="Resources/bgmap.png"/>
        
        <Style TargetType="{x:Type s:ScatterViewItem}">
            <Setter Property="Template" >
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type s:ScatterViewItem}" >
                        <ContentPresenter />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid>

        <Canvas x:Name="ScatterCanvas" ClipToBounds="True" Background="White"
            HorizontalAlignment="Center" VerticalAlignment="Center" 
                >
            <Canvas.LayoutTransform>
                <RotateTransform Angle="90"/>
            </Canvas.LayoutTransform>

            <src:ArcGisMap x:Name="BackgroundMap" ClipToBounds="True" CanPan="False" CanZoom="False" />

            <s:ScatterView x:Name="BackgroundScatterView" ClipToBounds="True">
                
            </s:ScatterView>

            

        </Canvas>
        
    </Grid>
</UserControl>
